package edu.webtek.cloudreq;

import org.jdom2.Document;
import org.jdom2.Element;

public class ReqCreateItem extends ReqBase{
	private final String shopKey, itemName;

	public String getShopKey() {
		return shopKey;
	}

	public String getItemName() {
		return itemName;
	}

	public ReqCreateItem(String shopKey, String itemName) {
		super();
		this.shopKey = shopKey;
		this.itemName = itemName;
	}

	@Override
	public Document toDocument() {
		Element shopKey = createElement("shopKey", this.shopKey);
		Element itemName = createElement("itemName", this.itemName);
		
		Element createItem = createElement("createItem", shopKey, itemName); 		
		return new Document(createItem);
	}
	
}
